<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Typed.js</title>
  </head>
  <body>
    喜欢一个人<span id="element"></span>。
    <script src="https://unpkg.com/typed.js@2.0.16/dist/typed.umd.js"></script>
    <script>
      var typed = new Typed("#element", {
        strings: ["看看书", "敲敲代码", "钻进塞尔达的世界", "游泳"],
        typeSpeed: 250,
        backSpeed: 100,
        backDelay: 100,
        startDelay: 1000,
        loop: true,
      });
    </script>
  </body>
</html>
